﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using Pampa.WebControls;

namespace Pampa.MVC.Fluent.CustomControls
{
    public class DatePickerBuilder : IHtmlString
    {
        private readonly DatePicker _datePicker;

        public DatePickerBuilder(string id)
        {
            _datePicker = new DatePicker();
            _datePicker.ID = id;
            _datePicker.CssClass = "datePicker";
        }

        public string ToHtmlString()
        {
            var sb = new StringBuilder();
            sb.Append(_datePicker.Render());

            return sb.ToString();
        }
    }
}
